package cate.common.table.activity.exorcism.row;


import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import cate.common.util.random.RWItem;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("驱魔之夜-随机奖励")
public class ExorcismRandomRwdRow extends ERow implements RWItem {

    @NoteField("奖励")
    public String rwdStr;

    @NoteField("权重")
    public double weight;

    @NoteField("分组")
    public int group;

    @Override
    public void parse(XSSFRowWrap xr) {
        this.id = xr.getInteger("ID", 0);
        this.rwdStr = xr.getString("奖励");
        this.weight =xr.getDouble("权重", 0d);
        this.group = xr.getInteger("分组", 0);
    }


    @Override
    public void decode() {
    }


    @Override
    public double getWeight() {
        return weight;
    }
}
